package dto1;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class PhoneRegisterDto {
    @NotEmpty(message = "电话号码不能为空！")
    @Pattern(regexp ="^((13[0-9])|(14[0,1,4-9])|(15[0-3,5-9])|(16[2,5,6,7])|(17[0-8])|(18[0-9])|(19[0-3,5-9]))\\d{8}$"  , message = "手机格式不正确！")
    private String mobile;
    @Size(min = 6, max = 12, message = "密码长度错误")
    private String password;
    @Size(min = 6, max = 6, message = "图形验证码不正确！")
    private String imageCode;
    @Size(min = 6, max = 6, message = "短信验证码不正确！")
    private String smsCode;

    // 注册渠道
    private Integer regChannel;
    private String code;
    private Long userid;
}
